#include "StdAfx.h"
#include "StatusbarUI.h"
#include "BlueRenderEngineUI.h"

CStatusbarUI::CStatusbarUI(void)
{
}

CStatusbarUI::~CStatusbarUI(void)
{
}

LPCTSTR CStatusbarUI::GetClass() const
{
	return _T("StatusbarUI");
}

SIZE CStatusbarUI::EstimateSize(SIZE /*szAvailable*/)
{
	return CStdSize(0, 10 + m_pManager->GetThemeFontInfo(UIFONT_CAPTION).tmHeight);
}

void CStatusbarUI::DoPaint(HDC hDC, const RECT& rcPaint)
{
	CBlueRenderEngineUI::DoPaintPanel(hDC, m_pManager, m_rcItem);
	RECT rcMessage = m_rcItem;
	::InflateRect(&rcMessage, -8, -2);
	int nLinks = 0;
	CBlueRenderEngineUI::DoPaintPrettyText(hDC, m_pManager, rcMessage, m_sText, 
		UICOLOR_TITLE_TEXT, UICOLOR__INVALID, NULL, nLinks, DT_SINGLELINE | DT_VCENTER);
}
